<?php

/**
 +-----------------------------------------------------
 * PublicModel
 +-----------------------------------------------------
 * @author	liuricheng 
 * @time	2014-03-13
 * @type	[add]
 * 
 */
import("ORG.Util.Function");


class TagModel extends Model{
	
	// 获取属性列表
	public function getTagList(){
		$sql		=	"
						SELECT t.tag_id, u.user_name, t.goods_id, g.goods_name, t.tag_words FROM `ybr_tag` AS t 
						LEFT JOIN `ybr_users` AS u ON u.user_id=t.user_id 
						LEFT JOIN `ybr_goods` AS g ON g.goods_id=t.goods_id 
						ORDER by t.tag_id DESC 
						";
		return $this->query($sql);
	}
	
}